package com.zhuss.want.db.dao.ext;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.zhuss.bean.vo.want.want.DetailWantTopicVo;
import com.zhuss.want.db.entity.WantTopic;
import com.zhuss.want.db.dao.gen.WantTopicMapper;

@Mapper
public interface WantTopicDao extends WantTopicMapper {
	
	void create(WantTopic record);
	
	int delete(WantTopic record);
	
	int deleteByParent(WantTopic record);
	
	void deleteBatch(@Param("wantTopicIdList") List<Long> wantTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	void deleteByParentBatch(@Param("wantTopicIdList") List<Long> wantTopicIdList, @Param("deleted") Integer deleted, @Param("modifierId") Long modifierId,
			@Param("modifier") String modifier, @Param("modifyTime") Date modifyTime);
	
	List<WantTopic> listAll(@Param("area") Integer area, @Param("wantId") Long wantId);
	
	DetailWantTopicVo detail(@Param("wantTopicId") Long wantTopicId);
	
	List<Long> listSon(@Param("wantTopicIdList") List<Long> wantTopicIdList);

	List<DetailWantTopicVo> listTopic(@Param("wantId") Long wantId, @Param("parent") Long parent);
    
}